package com.woyou.ui.activity;

import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.Click;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.ViewById;

import com.citaq.ideliver.R;

import android.text.method.ScrollingMovementMethod;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

/**
 * 用户协议界面
 * @author tanglc
 */
@EActivity(R.layout.agreement)
public class AgreementActivity extends BaseActivity {
	
	@ViewById
	RelativeLayout myback;
	@ViewById	//头部标题
	TextView head_title, agreement;
	
	@AfterViews
	public void init() {
		head_title.setText("用户服务协议");
		agreement.setMovementMethod(ScrollingMovementMethod.getInstance()); 
	}
	
	
	@Override
	public void onResume() {
		super.onResume();
		agreement.scrollTo(1, 1);  
	}
	
	//关闭协议界面
	@Click({ R.id.myback})
	void loginOnClick(View view)
	{
		switch (view.getId()) {
			case R.id.myback:
				//退出设置界面
				finish();
				break;
			default:
				break;
		}
	}
	
	

	@Override
	public boolean backOperate() {
		// TODO Auto-generated method stub
		return false;
	}

}
